package com.lbb.waimai.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.lbb.waimai.entiry.Category;
import com.lbb.waimai.entiry.Order;
import com.lbb.waimai.entiry.vo.OrderVo;
import com.lbb.waimai.entiry.vo.PageVo;

import java.util.List;

public interface OrderService extends IService<Order> {
    void toOrder(Long userId, OrderVo orderVo);

    List<Order> getOrder(Long userId);

    void cancelOrder(Integer id, Long userId);

    void payOrder(Integer id);

    Page<Order> findAllOrder(PageVo pageVo);
}

